import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in); //使用Scanner类定义对象
        System.out.println("please input a float number");
        float a=in.nextFloat(); //接收float型数据
        System.out.println(a);
        System.out.println("please input a integer number");
        int b=in.nextInt(); //接收整形数据
        System.out.println(b);


    }
}
